import request from '@/utils/request'

// 查询客户结算单列表
export function listCustomerSettleSheet(query) {
  return request({
    url: '/system/CustomerSettleSheet/list',
    method: 'get',
    params: query
  })
}


// 查询客户对账单详细
export function getCustomerSettleSheetList(params) {
  return request({
    url: '/system/CustomerSettleSheet/query',
    method: 'get',
    params: {
      startDate: params.startDate,
      endDate: params.endDate,
      customerId: params.customerId,
    }
  })
}


// 查询客户结算单详细
export function getCustomerSettleSheet(id) {
  return request({
    url: '/system/CustomerSettleSheet/' + id,
    method: 'get'
  })
}

// 新增客户结算单
export function addCustomerSettleSheet(data) {
  return request({
    url: '/system/CustomerSettleSheet',
    method: 'post',
    data: data
  })
}

// 修改客户结算单
export function updateCustomerSettleSheet(data) {
  return request({
    url: '/system/CustomerSettleSheet',
    method: 'put',
    data: data
  })
}

// 删除客户结算单
export function delCustomerSettleSheet(id) {
  return request({
    url: '/system/CustomerSettleSheet/' + id,
    method: 'delete'
  })
}
